import { createRequest } from '@/request'

export const aiDifyPage = data => {
  return createRequest({
    url: `/teacher/ai/dify/page`,
    method: 'get',
    params: data
  })
}
export const learningDifyList = data => {
  return createRequest({
    url: `/teacher/ai/dify/findAll`,
    method: 'get',
    params: data
  })
}


// 根据id查询项目详情
export const aiDifyFindById = data => {
  return createRequest({
    url: `/teacher/ai/dify/findById/${data.id}`,
    method: 'get',
    // params: data
  })
}


// 新增
export const aiDifySave = data => {
  return createRequest({
    url: `/teacher/ai/dify/save`,
    method: 'post',
		data
  })
}

// 删除
export const aiDifyDelete = data => {
  return createRequest({
    url: `/teacher/ai/dify/delete`,
    method: 'delete',
		data
  })
}

